package com.edu.test;

import com.edu.handler.LogHandler;
import com.edu.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.lang.reflect.Proxy;

public class MyTest02 {

    public static void main(String[] args) {

        ApplicationContext context = new ClassPathXmlApplicationContext("app.xml");
        UserService us = (UserService) context.getBean("ss");
        System.out.println(us.getClass());
        us.addUser();
        us.deleteUser();
//        us.addUser();

    }
}
